package com.ruoyi.order.station.qrcode;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

/**
 * DB5460 追溯码读取指令
 */
@Data
public class DB5460PLC {

    //plc→lpc 连接结果
    @S7Variable(byteOffset=0, bitOffset=0, type= S7Type.WORD)
    public Integer upConnectedOk;

    //线号
    @S7Variable(byteOffset=2, bitOffset=0, type= S7Type.WORD)
    public Integer upReady;

    //站号
    @S7Variable(byteOffset=4, bitOffset=0, type= S7Type.WORD)
    public Integer request;

    //ipc→Plc
    @S7Variable(byteOffset=10, bitOffset=0, type= S7Type.WORD)
    public Integer downConnectedOk;

    //ipc→Plc
    @S7Variable(byteOffset=12, bitOffset=0, type= S7Type.WORD)
    public Integer downReady;

    //ipc→Plc
    @S7Variable(byteOffset=14, bitOffset=0, type= S7Type.WORD)
    public Integer downDone;

}
